// /* global document */
// import React from 'react'
// import PropTypes from 'prop-types'
// import { connect } from 'dva'
// import { Spin, Layout } from 'antd'
// import config from 'config'
// import { withRouter } from 'dva/router'
// import styles from './index.less'
// // import '../themes/index.less'
// const { Content } = Layout;
// const App = ({
//   children, dispatch, app, location, loading
// }) => {
//   return (
//     <Layout className={styles.layout}>
//       {/* <Spin
//         size="large"
//         spinning={loading.effects['app/query']}
//         tip="Loading...">
//       </Spin> */}
//         <Content >
//           {children}
//         </Content >
//     </Layout>
//   )
// }

// App.propTypes = {
//   children: PropTypes.element.isRequired,
//   location: PropTypes.object,
//   dispatch: PropTypes.func,
//   app: PropTypes.object,
// }

// export default withRouter(connect(({ app, loading }) => ({ app, loading }))(App))